RoomParticipantView

class RoomParticipantView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : FrameLayout, View.OnTouchListener

Room participant video view for displaying participant video streams.

Overview

RoomParticipantView View component for displaying room participant video streams. RoomParticipantView is a view component specifically designed for rendering room participant video streams. It supports both camera and screen sharing video stream types, and provides fill mode settings, active state control and other features.

Key Features

  • Video Stream Rendering:Supports rendering camera video streams and screen sharing video streams

  • Fill Mode:Supports FILL and FIT video fill modes

  • Active State:Supports setting the active state of the view to control video rendering

  • Gesture Interaction:Supports click and other gesture interactions

Tip: Before use, you need to initialize the video stream type and participant info through init method.

Topics

Creating Instance

Video Stream Control

View Settings

Interaction

See Also

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)

Functions

Link copied to clipboard
fun init(streamType: VideoStreamType, participant: RoomParticipant)

Initialize view

Link copied to clipboard
open override fun onTouch(view: View, event: MotionEvent): Boolean
Link copied to clipboard
open override fun requestLayout()
Link copied to clipboard
fun setActive(isActive: Boolean)

Set active state

Link copied to clipboard
fun setFillMode(fillMode: FillMode)

Set fill mode

Link copied to clipboard
open override fun setOnClickListener(clickListener: View.OnClickListener?)
Link copied to clipboard

Update participant info

Link copied to clipboard

Update video stream type